/* PosterSection.module.css */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  /* background-color: #f8f9fa; */
}

.headerRow {
  margin-bottom: 30px;
}

.sectionTitle {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.sectionDesc {
  font-size: 13px;
  color: #666;
  margin-bottom: 25px;
}

.festivalList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  margin-left: 240px;
  margin-top: -70px;
}

.festivalItem {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  /* background-color: #fff; */
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.festivalItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.festivalItem.active {
  background-color: rgba(0, 255, 255, 0.238);
  color: white;
  border-color: #188fff6c;
}

.festivalLeft {
  display: flex;
  align-items: center;
}

.festivalName {
  font-size: 16px;
  font-weight: 500;
}

.festivalItem.active .festivalName {
  color: white;
}

.hotTag {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 12px;
  background-color: #ff4d4f;
  color: white;
  border-radius: 4px;
}

.templateGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.templateCard {
  /* background-color: white; */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 270px;
  height: 230px;
}

.templateCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.templateContent {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.templateImageContainer {
  position: relative;
  padding-top: 56.25%; /* 16:9 比例 */
  overflow: hidden;
  width: 300px;
  height: 600px;
}

.templateImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  height: 210px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.templateCard:hover .templateImage {
  transform: scale(1.03);
}

.templateInfo {
  padding: 16px;
  flex-grow: 1;
}

.templateInfo h4 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.templateInfo span {
  font-size: 14px;
  color: #666;
  margin-left: 155px;
  margin-top:-24px;
  float: left;
}